from tkinter import *

class PackManager1:
	def __init__(self):
		window = Tk()
		window.title("Pack Maneger 1")

		Label(window,text = "Blue", bg = "Blue").pack()
		Label(window,text = "Red", bg = "red").pack(fill = BOTH,expand =1)
		Label(window, text = "Yellow", bg = "Yellow").pack(fill = BOTH)

		window.mainloop()

class PackManager2:
	def __init__(self):
		window = Tk()
		window.title("Pack Maneger 1")

		Label(window,text = "Blue", bg = "Blue").pack(side = LEFT)
		Label(window,text = "Red", bg = "red").pack(side = LEFT,fill = BOTH,expand =1)
		Label(window, text = "Yellow", bg = "Yellow").pack(side = LEFT,fill = BOTH)

		window.mainloop()

PackManager1()
PackManager2()